/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
}

nav ul li a.active, nav ul li a:hover {
    background-color: #4CAF50;
}

/* Sidebar Styles */
.sidebar {
    width: 200px;
    padding: 20px;
    background-color: white;
    margin-right: 20px;
}

.sidebar h3 {
    margin-bottom: 15px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.sidebar ul li a:hover {
    color: #4CAF50;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.search-section, .category-section {
    flex: 1;
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    margin-top: 15px;
}

.search-form input {
    flex: 1;
    padding: 10px;
    margin-right: 10px;
    border: 1px solid #ddd;
}

.search-btn {
    background-color: #009688;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

.search-btn:hover {
    background-color: #00796b;
}

.main-content h2 {
    margin: 20px 0;
    text-align: center;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-image {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.product-image img {
    max-width: 100%;
    max-height: 180px;
}

.product-info {
    padding: 15px;
    text-align: center;
}

.product-info h4 {
    margin-bottom: 10px;
}

.price {
    color: #333;
    font-weight: bold;
    margin-bottom: 15px;
}

.add-to-cart {
    width: 100%;
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 0;
    margin-bottom: 10px;
    cursor: pointer;
}

.buy-now {
    width: 100%;
    background-color: #333;
    color: white;
    border: none;
    padding: 8px 0;
    cursor: pointer;
}

.buy-now:hover {
    background-color: #555;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    padding: 15px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    margin: 10px 0;
}

.payment-methods a {
    color: #4CAF50;
    text-decoration: none;
}

.payment-methods a:hover {
    text-decoration: underline;
}
